from django.conf.urls import url, include
from django.contrib import admin
from rest_framework_jwt.views import obtain_jwt_token

from users import views

urlpatterns = [
# /users/usernames/(?P<username>\w{5,20})/count/
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.UserName.as_view(),name='usernamecount'),
# /users/usermobile/(?P<usermobile>1[3-9]\d{9})/count/
    url(r'^phones/(?P<mobile>1[3-9]\d{9})/count/$',views.UserMobile.as_view(),name='usermobile'),
    url(r'^$',views.Register.as_view(),name='user_register'),
    url(r'auths/', obtain_jwt_token, name='auths'),

]